package com.example.function.integration.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @Description: 导入导出服务接口
 * @ClassName: ImportAndExportService
 * @Author: ext.fengcheng
 * @Create: 2023-08-08 15:41
 */
public interface ImportAndExportService {

    /**
     * @Description: 导入文件数据，解析文件，存入本地缓存
     * @ClassName: ImportAndExportServiceImpl
     * @Create: 2023/8/8 16:12
     * @Author: ext.fengcheng
     * @Params: [file]
     * @Returns: boolean
     */
    boolean importFileData(MultipartFile file);

    /**
     * @Description: 导出数据，生成文件到本地
     * @ClassName: ImportAndExportServiceImpl
     * @Create: 2023/8/8 18:05
     * @Author: ext.fengcheng
     * @Params: [fileName, response]
     * @Returns: boolean
     */
    boolean exportFileData(String fileName, HttpServletResponse response);
}
